<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class AdminPermissionsTableSeeder extends Seeder
{
    /**
     * Auto generated seed file
     *
     * @return void
     */
    public function run()
    {


        \DB::table('admin_permissions')->delete();

        \DB::table('admin_permissions')->insert(array(
        1 => 
            array( 
                'id' => 1, 
                'name' => 
                'Auth management', 
                'slug' => 'auth-management', 
                'http_method' => '', 
                'http_path' => '', 
                'order' => 1, 
                'parent_id' => 0, 
                'created_at' => '2023-10-21 00:56:20', 
                'updated_at' => '2021-05-08 14:41:45', 
            ), 
        2 => array( 
            'id' => 2, 
            'name' => 'Users', 
            'slug' => 'users', 
            'http_method' => '', 
            'http_path' => '/auth/users*', 
            'order' => 2, 'parent_id' => 1, 
            'created_at' => '2023-10-21 00:56:20', 
            'updated_at' => '2021-05-08 14:41:45', 
        ), 
        3 => array( 
            'id' => 3, 
            'name' => 'Roles', 
            'slug' => 'roles', 
            'http_method' => '', 
            'http_path' => '/auth/roles*', 
            'order' => 3, 'parent_id' => 1, 
            'created_at' => '2023-10-21 00:56:20',
             'updated_at' => '2021-05-08 14:41:45', 
            ), 
        4 => array( 
            'id' => 4, 
            'name' => 'Permissions', 
            'slug' => 'permissions', 
            'http_method' => '', 
            'http_path' => '/auth/permissions*', 
            'order' => 4, 'parent_id' => 1, 
            'created_at' => '2023-10-21 00:56:20', 
            'updated_at' => '2021-05-08 14:41:45', 
        ), 
         5 => array( 
            'id' => 5, 
            'name' => 'Menu', 
            'slug' => 'menu', 
            'http_method' => '', 
            'http_path' => '/auth/menu*', 
            'order' => 5, 'parent_id' => 1, 
            'created_at' => '2023-10-21 00:56:20', 
            'updated_at' => '2021-05-08 14:41:45', 
        ),
        6 => array( 
            'id' => 6, 
            'name' => 'Extension', 
            'slug' => 'extension', 
            'http_method' => '', 
            'http_path' => '/auth/extensions*', 
            'order' => 6, 'parent_id' => 1, 
            'created_at' => '2023-10-21 00:56:20',
             'updated_at' => '2021-05-08 14:41:45',
             ), 
        7 => array( 
            'id' => 7, 
            'name' => '设备', 
            'slug' => 'Device',
             'http_method' => '', 
             'http_path' => '/Device*', 
             'order' => 10, 
             'parent_id' => 8, 
             'created_at' => '2023-10-21 03:18:22', 
             'updated_at' => '2023-10-26 02:27:57', 
            ), 
        8 => array( 
            'id' => 8, 
            'name' => '资产管理',
             'slug' => '资产管理', 
             'http_method' => '', 
             'http_path' => '', 
             'order' => 7, 
             'parent_id' => 0, 
             'created_at' => 
             '2023-10-23 06:30:28',
              'updated_at' => '2023-10-23 06:30:36',
             ), 
        9 => array( 
            'id' => 9, 
            'name' => '配件', 
            'slug' => 'part', 
            'http_method' => '', 
            'http_path' => '/Part*',
             'order' => 11,
              'parent_id' => 8, 
              'created_at' => '2023-10-23 06:33:01', 
              'updated_at' => '2023-10-26 02:27:57',
             ),    
        10 => array(
             'id' => 10, 
             'name' => '补充信息', 
             'slug' => '补充信息', 
             'http_method' => '',
              'http_path' => '', 
              'order' => 12, 
              'parent_id' => 0, 
              'created_at' => '2023-10-23 06:33:01', 
              'updated_at' => '2021-05-08 14:41:45',
             ),
        11 =>array(
            "id" => 11, 
            "name" => "地点",
             "slug" => "Place",
              "http_method" => "", 
              "http_path" => "/Place*",
              "order" => 17,
              "parent_id" => 17,
               "created_at" => "2023-10-23 06:36:08",
                "updated_at" => "2023-10-26 02:29:48" 
            ),
        12 =>array(
            "id" => 12, 
            "name" => "厂商",
             "slug" => 
             "Manufacturer", 
             "http_method" => "", 
             "http_path" => "/Manufacturer*", 
             "order" => 18, 
             "parent_id" => 17, 
             "created_at" => "2023-10-23 06:37:07",
              "updated_at" => "2023-10-26 02:29:48" 
            ),
        13 =>array(
            "id" => 13,
             "name" => "分类",
              "slug" => "Category", 
              "http_method" => "",
              "http_path" => "/Category*",
               "order" => 19, 
               "parent_id" => 17, 
               "created_at" => "2023-10-23 06:37:36", 
               "updated_at" => "2023-10-26 02:29:48" 
            ),
        14 =>array(
            "id" => 14,
             "name" => "配件分类", 
             "slug" => "PartCategory", 
             "http_method" => "", 
             "http_path" => "/PartCategory*", 
             "order" => 20,
              "parent_id" => 17, 
              "created_at" => "2023-10-23 06:38:09", 
              "updated_at" => "2023-10-26 02:29:48" 
            ),
        15 =>array(
            "id" => 15, 
            "name" => "账号管理", 
            "slug" => "账号管理", 
            "http_method" => "", 
            "http_path" => "", 
            "order" => 12, 
            "parent_id" => 0,
             "created_at" => "2023-10-25 09:45:04", 
             "updated_at" => "2023-10-26 02:28:55" 
            ),
        16 =>array(
            "id" => 16, 
            "name" => "账号ID管理",
             "slug" => "账号ID管理",
              "http_method" => "", 
              "http_path" => "/AccountManagement*",
               "order" => 14, "parent_id" => 15, 
               "created_at" => "2023-10-25 09:45:42", 
               "updated_at" => "2023-10-26 02:29:48" 
            ),
        17 =>array(
            "id" => 17, 
            "name" => "账号信息", 
            "slug" => "账号信息", 
            "http_method" => "", 
            "http_path" => "",
            "order" => 16, 
            "parent_id" => 10,
            "created_at" => "2023-10-26 02:15:56", 
            "updated_at" => "2023-10-26 02:29:48" 
            ),
        18 =>array( 
            "id" => 18, 
            "name" => "硬件信息", 
            "slug" => "硬件信息", 
            "http_method" => "", 
            "http_path" => "", 
            "order" => 21,
            "parent_id" => 10, 
            "created_at" => "2023-10-26 02:16:25",
            "updated_at" => "2023-10-26 02:29:48" ), 
        19 =>array(
            "id" => 19, 
            "name" => "账号分类", 
            "slug" => "账号分类", 
            "http_method" => "", 
            "http_path" => "/AccountCategory*", 
            "order" => 22, 
            "parent_id" => 18, 
            "created_at" => "2023-10-26 02:17:37", 
            "updated_at" => "2023-10-26 02:29:48" 
        ), 
        20 =>array( 
            "id" => 20, 
            "name" => "设备只读", 
            "slug" => "设备只读", 
            "http_method" => "GET", 
            "http_path" => "/Device*", 
            "order" => 8, 
            "parent_id" => 8, 
            "created_at" => "2023-10-26 02:21:15", 
            "updated_at" => "2023-10-26 02:27:57" 
        ), 
        21 =>array( 
            "id" => 21, 
            "name" => "配件只读", 
            "slug" => "配件只读", 
            "http_method" => "GET", 
            "http_path" => "/Part*", 
            "order" => 9, 
            "parent_id" => 8, 
            "created_at" => "2023-10-26 02:27:33", 
            "updated_at" => "2023-10-26 02:27:57" 
        ), 
        22 =>array( 
            "id" => 22, 
            "name" => "账号ID管理只读", 
            "slug" => "账号ID管理只读",
            "http_method" => "GET", 
            "http_path" => "/AccountManagement*", 
            "order" => 13, 
            "parent_id" => 15, 
            "created_at" => "2023-10-26 02:29:42", 
            "updated_at" => "2023-10-26 02:29:48" 
            )
        ));


    }
}

